PASO 13: Cuando random_choice es 2 , la computadora elige "paper" . Guardaremos esto para averiguar qué jugador gana.

  • Haga clic en LÓGICA, luego y arrastre String Variable . Colóquelo dentro de la última instrucción if, debajo de .Sprite() .
  • Cambie el nombre de la nueva variable de my_var a computer_choice .
  • Cambie el valor de la nueva variable a "paper" .

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)